import 'package:flutter/material.dart';

class MyApp5 extends StatelessWidget {
  const MyApp5({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //1.导航
      appBar: AppBar(
        title: const Text('Text组件'),
        backgroundColor: Colors.pink,
      ),
      //2.内容
      body: Container(
        width: 300,
        height: 300,
        color: Colors.blue,
        alignment: Alignment.center,
        child: Text(
          '静夜思\n窗前明月光\n疑似地上霜\n 举头望明月\n低头思故乡',
          style: TextStyle(
            fontSize: 30,
            color: Colors.red,
            // fontWeight: FontWeight.bold,
            // fontStyle: FontStyle.italic,
            // decoration: TextDecoration.underline,
            // decorationColor: Colors.green,
            // decorationStyle: TextDecorationStyle.wavy,
            // decorationThickness: 5,
            // height: 1.5,
            // letterSpacing: 5,
          ),
        ),
      ),
    );
  }
}
